import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import pojo.User1;

public class Mytest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("demoBean.xml");
        User1 user = context.getBean("user1",User1.class);
        System.out.println(user.name);
    }
}
